package com.eedi.framework.sms.controller.sys.vo.template;

import com.eedi.framework.common.enums.CommonStatusEnum;
import com.eedi.framework.common.pojo.PageParam;
import com.eedi.framework.sms.enums.SmsClientTypeEnum;
import com.eedi.framework.sms.enums.SmsNotifyOptionalEnum;
import com.eedi.framework.sms.enums.SmsBizTypeEnum;
import com.eedi.framework.sms.enums.SmsSceneEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.eedi.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "系统界面 - 短信模板分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SysSmsTemplatePageReq extends PageParam {

    @Schema(description = "短信消息模板ID", example = "27083")
    private String sysSmsTemplateId;

    @Schema(description = "应用端：1用户端 2 医生端", example = "2")
    private SmsClientTypeEnum sysSmsTemplateClientType;

    @Schema(description = "业务场景类型：1注册登录 2 问诊 3 处方 详情见枚举", example = "2")
    private SmsBizTypeEnum sysSmsTemplateBizType;

    @Schema(description = "短信触发条件：1.登录验证码通知 2 医生接诊通知 详情见枚举", example = "1")
    private SmsSceneEnum sysSmsTemplateScene;

    @Schema(description = "短信模板内容")
    private String sysSmsTemplateContent;

    @Schema(description = "短信模板说明", example = "你猜")
    private String sysSmsTemplateDesc;

    @Schema(description = "短信通知模式：0 必选 1 可选")
    private SmsNotifyOptionalEnum sysSmsTemplateNotifyOptional;

    @Schema(description = "模板启用状态", example = "2")
    private CommonStatusEnum sysSmsTemplateStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
